
package system.base;

import framework.core.*;
import system.SelectManager;
import system.data.*;

/*
	Author    :chengbiao.he
	CreateTime:2008-02-19 11:08:22
*/
public class ClientDownupfileInfo extends ClientDownupfileInfoBase 
{
    //DOWNLOADTYPE
    public final static String DOWNLOADTYPE_DOWN = "下载";
    public final static String DOWNLOADTYPE_UP = "上传";
    
    //UPDOWN_STATE
    public final static String UPDOWN_STATE_SUCCESS = "成功";
    public final static String UPDOWN_STATE_FAIL = "失败";
    public final static String UPDOWN_STATE_TEXT ="TEXT";
    
//----system generated start----// 	
public ClientDownupfileInfo() 
{
	
}

private static void delete(DBConnection con,String id) throws Exception
{
	Conditions conditions = new Conditions();

	conditions.add(ID,id);
	
	delete(con,TABLE_NAME,conditions);
}
public static ClientDownupfileInfo fetch()
{
	return new ClientDownupfileInfo();
}
public static ClientDownupfileInfo copy(ClientDownupfileInfo srcObj)
{
	ClientDownupfileInfo obj = fetch();
	obj.copyBase(srcObj);
	return obj;
}
public static ClientDownupfileInfo fetch(DBConnection con,String id) throws Exception
{
	Conditions conditions = new Conditions();

	conditions.add(ID,id);
	
	return fetch(con,conditions);
}
public static ClientDownupfileInfo fetch(DBConnection con,Conditions conditions) throws Exception
{
	DBResult result = null;
	try
	{
		result = DBEngine.doSelect(con,"select * from " + TABLE_NAME,conditions);
		java.sql.ResultSet rs = result.getRs();
		ClientDownupfileInfo obj = null;
		if(rs.next())
		{
			obj = fetch(rs);
		}
		return obj;
	}
	finally
	{
		if(result!=null) result.clear() ;
	}
}
public static ClientDownupfileInfo fetch(java.sql.ResultSet rs) throws Exception
{
	ClientDownupfileInfo obj = new ClientDownupfileInfo();
	obj.initObject(rs);
	return obj;
}
protected void getUnique(DBConnection con) throws Exception
{
		setId(DBEngine.getId(con));
}
//----system generated end----//



//----add by chengbiao.he start----//


//----add by chengbiao.he end----//

}

